<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // ES6 -- 网络请求
        // fetch 是使用Promise和xhr封装
        fetch("http://127.0.0.1:5500/a.json").then((data)=> {
            console.log(data)
            return data.json()
        }).then((data)=> {
            console.log(data)
        })

        // axios 库
    </script>
</body>
</html>